<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=640px,user-scalable=no,target-densitydpi=device-dpi" />
		<link rel="stylesheet" href="../css/css.css" type="text/css" />
		<script type="text/javascript" src='../js/jquery.min.js'></script>
		<script type="text/javascript" src='../js/main_in.js'></script>
		<script type="text/javascript" src='../js/common.js'></script>
		<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=TRd4GWTeP3j8W6Hcfn04DEqx6o5XRldw"></script>
		<title>退款原因</title>
		<script>
			var apid = getUrlParam('apid');
			var rid = getUrlParam('rid');
			$(function(){
				
				$('#apid').val(apid);
			})
			
			function doadd(){
				var textareaid=$('#textareaid').val().trim();
				if(textareaid){
					$.ajax({
						type:'POST',
						data:{
							rid:rid,
							refund_text:textareaid
						},
						url:'http://insure.unair.cn/refunds.php',
						success:function(data){
							alert('提交成功！');
							clicked('bgsearch.html');
						}
					});
				}else{
					alert('请填写原因');
				}
			}
		</script>
	</head>
	<body>
		<div class="app_head">
			<div class="app_prev" onclick="clicked('bgsearch.html')">
				<img src="../img/arrow.png" />
			</div>
			<div class="app_head_text">退款原因</div>
			<div class="app_prev"></div>
		</div>
		
		<div class="app_body">
			<div class="main_in_input">
				<div class="main_in_input_text_left">支付宝订单号</div>
				<div class="main_in_input_input_right" style="width:50%;">
					<input id="apid" type="text" value=""/>
				</div>
			</div>
			<div class="main_in_textarea">
				<div class="main_in_input_text_left">退款原因</div>
				
			</div>
			<div class="main_in_textarea">
				<div class="textarea" >
					<textarea rows="10" cols="46" id="textareaid" style="font-size: 19px;"></textarea>
				</div>
			</div>
			<div style="background: #fff;width: 100%;height: 360px;">
				<div class="bg_submit" onclick="doadd()">提&nbsp;交</div>
				<div class="bg_back_class" onclick="back()">取&nbsp;消</div>
			</div>

		</div>
	</body>
</html>
